﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<nelech.Models.DBModel.ForumCategory>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    הוסף שירשור
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        <%= Model.title %></h2>
    <% using (Html.BeginForm("CreateSubject", "Forum"))
       {%>
    <fieldset>
        <legend>הוסף הודעה</legend>
        <% Response.Write("<input type=\"hidden\" value=\"" + Model.id + "\" name=\"c_id\"/>");%>
        <% Response.Write("<input type=\"hidden\" value=\"" + Page.User.Identity.Name + "\" name=\"name\"/>");%>
        <div>
            <p>
                <label for="title">
                    כותרת:</label>
                <%= Html.TextBox("title", "")%>
            </p>
            <p>
                <%= Html.TextArea("text", new { cols = "45", rows = "10" })%>
            </p>
            <div class="floatleft">
                <span class="feedbackButton">
                    <input type="submit" value="פרסם" /></span> <span class="feedbackCloseButton">
                        <input type="button" value="סגור" onclick="Close()" /></span>
            </div>
        </div>
    </fieldset>
    <%} %>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="publishTop" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="Right" runat="server">
</asp:Content>
